package cn.com.dhcc.app.pub.module.authmgr.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.component.db.WappedResultSet;
/**
 * 
 * @日期：2013-6-6下午7:27:08
 * @作者：乔兵
 * @版权所有：东华软件
 * @版本：1.0
 */
public class RoleInfoRowWapper implements RowMapper<RoleInfoInner>{

	public RoleInfoInner mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		RoleInfoInner r = new RoleInfoInner();
		r.setId(rs.getString("id"));
		r.setRoleName(rs.getString("role_name"));
		r.setRoleStatus(rs.getString("role_status"));
		r.setRemark(rs.getString("remark"));
		r.setChecked(rs.getString("checked"));
		r.setIsAnonymous(rs.getString("ISANONYMOUS"));
		r.setIsDefault(rs.getString("ISDEFAULT"));
		r.setModified(rs.getTimestamp("modified"));
		r.setOrgCode(rs.getString("org_code"));
		r.setRoleCode(rs.getString("role_code"));
		r.setRoleType(rs.getString("role_type"));
		return r;
	}
   
}
